// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=135

//#define COMPILE
#ifdef COMPILE

#include <fstream>
#include <iomanip>
using namespace std;

double round(double x) {
	return (double)(int)(x * 10 + 0.5) / 10.0;
}

int main() {
	ifstream in("input.txt");
	int a, b;
	in >> a >> b;
	in.close();
	if (a > b) {
		int c = a;
		a = b;
		b = c;
	}
	int sum = 0;
	int n = 0;
	for (int i = a; i <= b; i++) {
		if (( i % 3 == 0) || (i % 5 == 0)) {
			sum += i;
			n++;
		}
	}
	ofstream out("output.txt");
	out << "합계 : " << sum << endl << "평균 : " << fixed << setprecision(1) << round((double)(sum) / (double)(n)) << endl;

	return 0;
}
#endif
